<?php
class Sms_mainModel extends Model
{
    public $_link = array(
                          array(
                                'mapping_type' => BELONGS_TO,
                                'class_name' => 'euser',
                                'mapping_name' => 'Sendeuser',
                                'foreign_key' => 'euser_id',
                                'mapping_fields' => 'euser_id,username'
                                ),
                          array(
                                'mapping_type'=>BELONGS_TO,
                                'class_name'=>'euser',
                                'mapping_name'=>'Toeuser',
                                'foreign_key' => 'toeuser_id',
                                'mapping_fields'=>'euser_id,username'
                                ),
                          array(
                                'mapping_type'=>HAS_MANY,
                                'class_name' => 'Sms_reply',
                                'mapping_name' => 'Reply',
                                'foreign_key' => 'main_id'
                                )
                          );
}
?>
